package so.sao.code.service.domain.event;

import lombok.Data;

/**
 * Created by Administrator on 2017/10/27.
 */
@Data
public class ChangeChildCodeUpEvent {
    private Long eseId;
    private String action;
    private boolean isAppend;
    private Long count;
    private String ip;

    public ChangeChildCodeUpEvent(Long eseId, Long count, boolean isAppend, String ip) {
        action = isAppend ? "追加码量" : "调整码量";
        this.count = count;
        this.eseId = eseId;
        this.ip = ip;
    }
}
